<template>
	<view class="content">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item>
				<view class="swiper-item">
					<image src="../../static/header.png" mode="scaleToFill" class="logo"></image>
				</view>
			</swiper-item>
		</swiper>
		<text style="font-size: 28rpx;width: 100%;text-align: center;margin: 30rpx 0rpx;color: #333333;">--请选择就餐人数--</text>
		<view class="uni-flex uni-row" style="-webkit-flex-wrap:wrap;flex-wrap:wrap;width:750rpx;align-items: center;">
			<text class="uni-text" v-for="(item, index) in list" :key="item.id" style="width: 180rpx;">{{item}}人</text>
		</view>
		<button type="primary" class="mbt" @click="goaction">开始点餐</button>
	</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				iconType: 'search',
				list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, '更多'],
			}
		},
		onLoad() {

		},
		methods: {
			goaction() {
				uni.reLaunch({
				    url: '/pages/main/index'
				});
			},
		}
	}
</script>

<style>
	@import '../../common/uni.css';

	.content {
		display: flex;
		flex-direction: column;
		height: 100%;
		width: 100%;
	}

	.swiper-item {
		width: 100%;
		height: 350rpx;
	}

	.logo {
		width: 100%;
		height: 100%;
	}

	.mbt {
		margin-top: 50rpx;
		width: 90%;
		width: 640rpx;
		height: 88rpx;
		background: linear-gradient(90deg, rgba(255, 80, 114, 1) 0%, rgba(255, 136, 128, 1) 100%);
		opacity: 0.88;
		border-radius: 49rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 400;
		line-height: 24rpx;
		color: rgba(255, 255, 255, 1);
		line-height: 88rpx;
	}
</style>
